Hi Emily,
Please refer to Geoff's answer in the following link:https://in.mathworks.com/matlabcentral/answers/151060-using-windowkeypressfcn-with-uicontrol
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!