Handle keyboard inputs and texture filter