so iv been looking around trying to find a way to grab key presses from the user no matter where they are typing using a keyboard hook and saving the keystrokes to a text file by running them through a variable into an ofstream and im wondering if anyone could help me with that or give me some examples