Simplified event hadling. Same code for space, click and touch