# Operating Command Button Controls

When you set a command button control to any mode other than indicator mode, you can operate it from the keyboard or with the mouse.

To operate a command button from the keyboard, press <Enter> or <spacebar> to activate the button. If the control mode of the command button is hot or validate, a commit event is generated when you press the <Enter> key or <spacebar>. The button changes appearance momentarily to indicate that you selected it.

To operate a command button with the mouse, click on the button. The button remains depressed until the user releases the mouse or moves it off the button. If the control mode of the command button is hot or validate, a commit event is generated when the user clicks and releases the mouse over the command button area. If the user releases the mouse outside of the button area, a commit event is not generated.