got rid of key pressed function, put in contidional in draw()