implements some key stroke