New function: getControllerPressed