Ctrl, shift and alt keys stopped working
848
Solution 1
Assuming that the problem is with software, try the following :
- Fully patch Windows using Windows Update, including optional items (except Bing etc.)
- Use sfc /scannow to verify system integrity
- In Control Panel -> Device Manager, open Keyboards, delete your keyboard device and reboot (might need to use the power button)
- In Control Panel -> Region and Language, in the
Keyboards and Languages
tab, clickChange keyboards..
and verify that you are using the correct keyboard. (Have you got more than one?) - Boot into Safe mode and check whether the problem disappears.
If it does, then an installed product is causing the problem.
Use theSystem Configuration
utility, General tab, clickSelective startup
and clear theLoad startup items
check box. On the Services tab, click theHide all Microsoft services
check box and clickDisable all
. OK out and restart the computer.
If the problem still does not occur, turn on Services back in binary search mode until you find the guilty one.
Solution 2
Sometimes the keyboard gets stuck. I found that rapidly pressing the shift, alt, and ctl keys will eventually unwedge them. Try about 6 or 7 good presses on each in rapid succession, eg shift shift shift shift shift alt alt alt alt
This is often enough to wake the keyboard to the proper state.
You might find another symtom is that you can't click mouse-button 1, you always get the context menu following the mouse around. This is a cure for that issue too.
Related videos on Youtube
Author by
niksmac
Updated on September 18, 2022Comments
-
niksmac over 1 year
Here is what my controller looks like
exports.pnumber = async(function* (req, res) { const user = new User() try { yield user.findOneAndUpdate(req.body.pnumber, req.body.uid) res.send('success') } catch (err) { console.log(err) } })
and my modal is
findByIdAndUpdate: function (pnumber, uid) { var query = {'_id': uid}, update = { $push: {pnumbers: pnumber} }, options = {upsert: true} return UserSchema.findOneAndUpdate(query, update, options) },
and the schema definition is
const UserSchema = new Schema({ name: { type: String, default: '' }, pnumbers: [], createdAt: { type: Date, default: Date.now } })
The error I am getting is
-
Dave over 11 yearsCan you clarify this means for everything or only with other keyboard presses. If you press alt on your browser, does it select the File menu? What happens if you press the left shift key 5 times quickly?
-
jsgroove over 11 yearsYes, this is for everything, not only key combinations. Pressing alt will not change focus to the top menu and repeatedly pressing the shift key will not bring up the sticky keys dialog.
-
Benjamin Gruenbaum over 6 yearsThe fact it's an unhandled promise rejection doesn't change the error source:
user is not defined
- you didn't define auser
variable. -
niksmac over 6 years@BenjaminGruenbaum still getting the error even after I fixed, see my edit.
-
Benjamin Gruenbaum over 6 yearsThere is no way you're getting that exact error with the above code, it's simply impossible. Copy the new error - and in the future please read error messages more carefully.
-
niksmac over 6 years@BenjaminGruenbaum yes you're right. I am trying different methods. now the error is pastebin.com/ha65Jizm
-
Benjamin Gruenbaum over 6 yearsIn any case, the error is about your mongoose usage and doesn't have much to do with promises - you're passing data to mongoose incorrectly. The unhandledRejection is just an "uncaught error"
-
niksmac over 6 yearsFigured it out. Will be posting the answer now.
-
-
jsgroove over 11 yearsI have previously verified the accessibility options and none of them is checked.
-
Dave over 11 yearsCan you confirm that within device manager that the keyboard drivers are up to date.
-
jsgroove over 11 yearsYes, have also used the device manager to check for driver updates and the system said that the drivers are up to date.
-
jsgroove over 11 yearsI have also did a system restore to 3 days ago but it did not fix the problem.
-
Dave over 11 yearsMaybe the keyboard is on the way out - I would suggest you plug in a new one and see if this solves the problem. Then you may need to get the keyboard fixed or use an 'external' one
-
jsgroove over 11 yearsI am thinking that it may be a problem with the OS, seeing as both the left and right keys stopped working, then the USB device not recognized message started to appear, and something is wrong with the sound as well, it's much lower and it doesn't seem like all of the speakers are running.
-
jsgroove over 11 yearsAm installing an antivirus and will do a global scan, then will try an external keyboard, then will try reinstalling the OS. If you have any other ideas in between these, let me know. Thanks!
-
Dave over 11 yearsOr, the computer is old and the motherboard is failing. What ever happens at this point, BACK UP FIRST
-
jsgroove over 11 yearsThe laptop is 2 and a half years old. Well, even if the motherboard will fail, my data should be safe on the hard drive, I don't think that it will be a problem of losing it, just accessing it for a while.
-
Admin over 8 yearsi have reinstalled windows 7 but the problem is still there.
-
harrymc over 8 yearsIf you have reinstalled Windows as an upgrade, you have probably conserved the problem as-is.
-
Admin over 8 yearsno. i took a backup of my data and installed a fresh installation.
-
harrymc over 8 yearsIf the problem happens on vanilla Windows 7, with no third-party products installed, then it is most probably a hardware problem. As verification, boot a Linux CD and see if the problem still occurs; if it does then this is absolutely a hardware problem.
-
niksmac over 6 yearsError is still there, I tried the
. catch
,await
and defined user. -
Alexander Bicukow about 2 yearsThat's so stupid, but that worked