implemented key press in sphere