fixed key_pressed