fixed issue with clicks but not keypress