Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8690381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:53:22+00:00 2026-06-12T23:53:22+00:00

What I am trying to do is handle an event in which an end

  • 0

What I am trying to do is handle an event in which an end user pounds the keyboard with his palm, fist, face, etc. Sounds ridiculous but it will be used as a supplemental safety feature in a high-power laser lab. I was thinking of watching for 4 or more keys. Examples of valid combinations:

- u{f5}7hby6
- 6g3.io{alt}mn'
- p9hyi
- {tab}2{f2}56{shift}z
- {alt}{windows}\{ctrl}{f8}
- basically anything else that can be typed with a face

I have tried this method, which doesn’t work because not all KeyUp or KeyDown events are handled especially when multiple keys are pressed.

Private keez As New List(Of Integer)

Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    keez.Add(e.KeyValue)
    If keez.Count >= 4 Then MessageBox.Show("I handled it!")
End Sub

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
    Try
        keez.Remove(AscW(e.KeyChar))
    Catch
    End Try
End Sub

Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
    keez.Remove(e.KeyValue)
End Sub

With this method, keys are missed constantly. I’m wondering if anyone knows of a way to handle multiple keys pressed consecutively. Most Google searches are related to standard key combos which almost always include a modifier (ctrl, alt, shift) + one additional key.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:53:24+00:00Added an answer on June 12, 2026 at 11:53 pm

    I don’t think you can handle more than 4 keys at the same time (for example, 5 letter characters at the same time will not work) – it is a hardware limitation of most today’s keyboards, i.e. how they are wired internally. Keyboards that support all keys pressed at the same time can be very expensive, and I haven’t seen one live. You can check this thread for more information. Also discussed on tomshardware.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to handle the onkeydown event across multiple frames (no, I unfortunately
I'm trying to wire up a CheckBox to handle an event when check/unchecked. If
I am trying to handle a case of a DateTime which might be null
I'm trying to handle the problem where a user can try to open, with
while trying to process some user input which contains characters such as <. I
I'm trying to create a sidebar which follows the user when he scrolls down
I am trying to handle flow control situation on producer end. I have a
I am new to Dojo and trying to understand how to handle events. There
I am currently trying to assign an event handler to dynamically created rectangle objects.
I am trying to replace the JavaScript onclick event handler in ASP.NET that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.