got the input events to work for all inputs