Buttons have a pressable() method to check whether or not you can press them