I figured it out with help from discord folks.
-- Hero Dash when 'X' Held
function map:on_key_pressed(key)
if key == "x" then
sol.audio.play_sound("jump")
hero:set_walking_speed(200)
end end
function map:on_key_released(key)
if key == "x" then
hero:set_walking_speed(88)
end end
-- Hero Dash when 'X' Held
function map:on_key_pressed(key)
if key == "x" then
sol.audio.play_sound("jump")
hero:set_walking_speed(200)
end end
function map:on_key_released(key)
if key == "x" then
hero:set_walking_speed(88)
end end