+ fixed key press up and down
some code for platformed basic