linux getkey
finish movement