Using a key press and mouse click for separate functions