fixed p hotkey functionality