add keyhandling to blocking logic