disable window hook when inactive
use raw input instead of key hook