# Multiple keydown captures

**URL:** <https://forum.kirupa.com/t/multiple-keydown-captures/271856>\
**Category:** Uncategorized\
**Created:** [September 29, 2008, 7:04pm UTC](https://forum.kirupa.com/t/multiple-keydown-captures/271856 "2008-09-29T19:04:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jOch](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jOch](https://forum.kirupa.com/u/jOch)\
**Post date:** [September 29, 2008, 7:04pm UTC](https://forum.kirupa.com/t/multiple-keydown-captures/271856/1 "2008-09-29T19:04:59Z")

</div>

Hi, I am hoping to get some ideas on how to achieve the following…

I am trying to capture multiple keydowns in order to execute certain event…

I’m using WPF and C#… I’ve tried the following to test… it doesn’t work, so I am hoping to get some ideas…

```auto

        private void test(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (e.Key == System.Windows.Input.Key.H && e.Key == System.Windows.Input.Key.LeftCtrl
                && e.Key == System.Windows.Input.Key.System)
            {
                MessageBox.Show("Key pressed is: " + e.Key);
            }
        }

```

I am basically trying to capture Ctrl+Alt+h…
