got rid of keypressed stuff (interfered with repaint)