printscreener: Modularised ffi keypress functionality