base keyhandling in