I would consider adding window.listen() before setting up the key bindings for the move_right()
window.listen()
move_right()
window.listen() window.onkeypress(move_right, 'Right')