You need physical access to the target device (get it in your hand and unlock it with the password/passcode) and install iKeyMonitor on it.