actions_press function

Press or release a key