It is normally acceptable to use a keylogger on your computer. To prevent criminal charges, you should review your state and federal legislation.