fixed bug in getButtonOrAxisPress