add key listener and add moveback function