Ah, yes. That is indeed 2 button presses, not one. So long as they are not protected functions, you can do
Code:
if condition1 then
do first thing
elseif condition2 then
do other thing
else
do third thing
end
(Though the code you linked is for an event handler, not button presses.)
(Oh, and we can't actually see button presses in a gif.
)