Forgot cast in getButtonPress