willwade 8 hours ago

Nice. Some thoughts.

Look at PPM. Your prediction model would work better with personalised data. PPM is efficient (nb. I see you are using python - look at this https://github.com/willwade/pylm - although be warned - i think my code is not quite right..)

Layout shifting for finger movement - well its great if you didnt have to look. The time for visual processing the letters adds a significant lag (its why typical word prediction isnt used that much and when it is - not over 3 predictions (I have papers on this if you are interested). But its not all bad..

Switch users who need next letter prediction this could dramatically support their rate of input. (view https://youtu.be/Bhj5vs9P5cw?si=VnytfH_vdEUWuLok&t=73 - now note how the keyboard blocks the scan up. But imagine if it just scanned each letter first by next most likely - or heck - like this repo - actually changes button position and kept the scan pattern the same. It would be a ton more efficient)

(and a bit of a rabbit hole.. What if keys had word predictions on them? This is basically the end result of ACE-LP: https://discovery.dundee.ac.uk/en/publications/ace-lp-augmen...)

jslezak 8 hours ago

Yes! I have been wanting this forever. Keys are in too predictable a position

  • all2 8 hours ago

    There were, for awhile, some security systems had on-screen keyboards that would change layout on every key press.

    • stoneman24 8 hours ago

      I think that this is an attempt to stop the “clean key” problem. Security system keypads (especially outdoor ones) tend not to be cleaned, so as time passes, it is easy to spot the dirty keys. Dirty keys are not being pressed and are therefore not in the passcode.

      So look for the clean keys and try combinations from there. In a 4 digit (0-9) keypad, knowing the clean numbers drops the possible codes from 9999 to 24 (if my early morning math holds up).

      Also helps the issue of someone looking over the shoulder of a valid person. Chances are they are just seeing the position and not the character pressed. So the keyboard changes and you actually need to know the character not just the old position.

      • qrobit 7 hours ago

        It would be 24 if all digits are distinct

        It actually drops from 10^4=10000 to 4^4=256 combinations

        • twnettytwo 5 hours ago

          If they aren't distinct, you wouldn't have 4 clean buttons, but just 3 - in which case we also know the repeating digit repeats exactly once and we get 12x3 (36) possible combinations. With two clean buttons, it's 6 (if both repeat) + 4 (if only one repeats) = 10 and if there's 1 that's just one, and a terrible password.

          • penteract 5 hours ago

            With 2 clean buttons, there are 4x2 ways for only 1 to repeat, giving 14 combinations in total.

        • karencarits 5 hours ago

          I guess you would be able to count the number of clean keys and thus know both the number of distinct digits and the digits (but not the order nor which digit that's repeated)

          • bluGill 25 minutes ago

            The number that is repeated is likely to be dirtier than the numbers that are not so you get that information too.

      • Modified3019 6 hours ago

        Interesting. This would also stop keypress extraction via analyzing audio.

        • Terr_ 4 hours ago

          Hmm... It may still be vulnerable if:

          1. You have lots of spy-data samples that reveal which physical key is pressed (perhaps they sound different) and the precise timing of those strikes, but you don't know what scrambled numbers were actually being shown. (And it's always the same code.)

          2. The trick is that users take longer to press a number when it's displayed far away from its "normal" position, because they had to seek longer to find it.

          3. This means you can infer the true numbers based on how quickly or slowly presses happen versus which physical key is struck.

          For a simple example, assume a two-digit code where there are nine keys. If the fastest first press is always the top left corner, and the fastest second press is always the middle, we can guess the code is either 15 or a 75, depending on if the user is accustomed to phones or keyboard numpads.

      • m463 7 hours ago

        Also spy robots with thermal imaging eyeballs.

    • Cthulhu_ 6 hours ago

      This would be an interesting one to integrate into password entry forms... although you'd need to show the randomised keyboard layout on screen.

      Or have a keyboard with oled or e-ink keys, like the Optimus Maximus [0] promised to deliver. It's kinda weird that nobody else seems to have picked up on this concept since then. Probably just impractical or too expensive.

      I read that its patents expired in 2016; around 2015 there was a concept for an e-ink button keyboard, but that site is now a plain gambling ad. There's also https://www.nemeio.com/ that still works, but its buttons look like sunken screens under plastic domes.

      [0] https://en.wikipedia.org/wiki/Optimus_Maximus_keyboard

    • sen 6 hours ago

      It’s still a relatively common thing for pin-coded door/gate security.

    • julian_t 3 hours ago

      Had this at an ATM recently, and it took a couple of tries at my PIN before I looked at the keypad and realized what was going on. One more wrong PIN and I could have lost my card.

    • hargup 4 hours ago

      I have seen this with some of the card swiping machines in India.

    • pandemic_region 3 hours ago

      I occasionally still get this in certain petrol stations. Always catches me off guard.

leshokunin 6 hours ago

This project brilliantly points out that we are limited and shaped by how keys and layouts are presented to us.

What I don’t understand is why not go all the way. Why not also change the concept of what’s needed to enter a character? It would make sense that keys aren’t the ideal affordance to express a key every time.

Use a volume slider for a letter, use radio buttons, on/off toggles. What if I could draw the letter on my trackpad?

I hope this opens the door for a thriving ecosystem of expansions.

  • Shorel 2 hours ago

    > What if I could draw the letter on my trackpad?

    I have been proposing to adapt Shorthand* to computer tactile input many times. Touchpads and touchscreens can use it. It seems faster and easier for both the computer and the person than having to recognize slow handwriting.

    Secretaries used this for many decades, because it allowed them to record speech in real-time.

    There is always a dismissive comment about how this is not a good idea for one reason or another, but I still think it would be a great feature to have.

    * https://en.wikipedia.org/wiki/Shorthand

  • CaptainFever 6 hours ago

    > What if I could draw the letter on my trackpad?

    The Apple Newton did that!

    https://en.wikipedia.org/wiki/Apple_Newton#Notes

    • bux93 2 hours ago

      Also the palm, they called it graffiti. https://en.wikipedia.org/wiki/Graffiti_%28Palm_OS%29

      (Google's gboard offers a handwriting keyboard, but it's on the touch screen and doesn't count. Also, it's not graffiti, so a bit more error prone. It does recognize joined-up handwriting though.)

      There's also some keyboards on f-droid for braille text input and morse code input.

    • leshokunin 3 hours ago

      That feels like Siri dictation, minus Siri, and minus the dictation

  • mihaaly 2 hours ago

    I'd put some random keys on the bottom of my seat or wired into the TV remote or the doorbell button of my neighbours. The ordered shape and regular size, position of keys is too much of a burden to mee, constricts my wondering creative mind too much.

  • shae 6 hours ago

    We're also limited and shaped by keyboards. Why only one letter per finger? The datahand does five!

    Why are key switches only press?

    What about analog partial key press? There are Hall effect keyboard switches that do that, I want to try some.

    What about finger twist for input? I don't think anything exists? Would that be a volume knob on a key switch?

    • cudder 3 hours ago

      > What about analog partial key press? There are Hall effect keyboard switches that do that, I want to try some.

      That sounds fun, now I really want to try out a keyboard where half press is lowercase and full press is UPPERCASE! No more pinky strain from shift presses.

      • bluGill 21 minutes ago

        Some pipe organs have keyboards that support that. I can't figure out when it started, but my guess is the 1920s. No hall effect, they had mechanical contacts. (I've never got to play one and always wondered if you could feel when the two positions were hit or if you had to guess and rely on sound - organ pipes often have a long delays between when you press the key and when the speak)

    • leshokunin 3 hours ago

      This is true. We’ve been so formatted by big keyboard that I never considered just the tip of my fingers. I hope you’ll make good use of our opposable thumbs in this new keyboard paradigm

Shorel 2 hours ago

This mixed with LED keycaps that change to reflect the current assigned letter would be awesome.

For hunt and peck typists.

  • bluGill 17 minutes ago

    Seems like eink would be better, but the smallest I can find is about 3cm so much too big. If you can get them smaller though...

atomer 6 hours ago

Took me 1 year to rewire my brain to switch from Qwerty to Dvorak (I struggled with from RSI for nearly 6 years) and nearly 2 years to gain full speed. It is hard, very hard for the brain. It is mentally tiring to rewire your brain like this and you will do your job at a much worse efficiency (forget pair programming for a while). You need new keyboard stickers also. Great job at making this idea but it is not practical.

  • natlight 3 minutes ago

    I switched to Dvorak 20 years ago and I love it. It only took me about 2 weeks to learn and to pass my qwerty typing speed. I could actually touch type on either keyboard for the first year or two after I switched. I recommend not using stickers or dvorak keyboards at all, it helps you learn faster and your family won't get pissy because they can't use your computer anymore.

    Also, it is not difficult to use other peoples computers. You can switch keyboards pretty easy these days on windows and mac. In fact, my very first computer (Apple IIc) had a mechanical switch to flip between qwerty and dvorak.

  • lawn 5 hours ago

    > You need new keyboard stickers also.

    You absolutely do not and it even hampers your ability to quickly learn to type efficiently if you rely on key legends or layout references.

  • encom 4 hours ago

    And there's also the problem of using computers that aren't yours. I haven't tried (and I will never), but I imagine switching between layouts is at least very inconvenient.

    • niek_pas 2 hours ago

      I switched to Dvorak ±8 years ago, and I can still type qwerty almost as well as I could back then. I could imagine it being a problem if you're using other people's machines on a daily basis though.

  • Kuraj 3 hours ago

    This entire discussion reads like perfect satire because I still can't decide whether we are being serious or not

red_admiral 3 hours ago

Keyboards aside, I find it really frustrating when something I use frequently - such as the toolbars in excel - changes without warning and breaks my muscle memory.

jen729w 7 hours ago

I learned recently that there are way, way more alt-layouts than the ones you've heard of: Dvorak & Colemak.

Not only that, people just change them to suit their needs! They use things like Hands Down [0] as a guide, and make up their own layout.

Wild.

[0]: https://sites.google.com/alanreiser.com/handsdown

  • eviks 4 hours ago

    Very nice website with many solid principles! Though one big flaw in all the designs I've seen is that they rely on bad data - text corpus that is the output of human editing efforts, not the input.

    So all those "0.00001%" stats aren't as precise as they seem, and you still see the frequently used backspace/enter in the awful pinky position despite the official philosophy of "Hands Down is easy on the pinkies"

    Have you seen any design that is based on actual human input?

    • loriverkutya 4 hours ago

      As far as I'm aware hands down layouts were primarily designed to be used on a split ergonomic keyboard with thumb cluster, the space and enter lives on the thumb cluster.

      • eviks 4 hours ago

        Even those better thumb variants don't seem to statistically take that into account (judging from the description/heatmaps/data sources), but then it also presents the "slab" variant...

  • fouronnes3 7 hours ago

    Thank you for the link! That looks fascinating. I have instantly added it to my "keyboard" bookmarks folder!

    I will promptly forget it exists and keep typing on the random layout I learned to touch type on 20 years ago, all the while suffering from terrible finger acrobatics and wishing for a better layout every single day.

  • smartmic 5 hours ago

    For those who type on German keyboards or in German, there are a number of layouts that have evolved around the Neo 2 layout [1]. The main driving force is ergonomics, but since not everyone works the same way, many variants have emerged (and still do) [2]. Interesting is the craftsmanship, including customized programs to optimize the layouts [3].

    [1] https://www.neo-layout.org/Layouts/

    [2] https://maximilian-schillinger.de/keyboard-layouts-neo-adnw-...

    [3] https://hg.sr.ht/~arnebab/evolve-keyboard-layout

    • tugu77 3 hours ago

      German layouts with [ ] { } in such horrible positions are killing all joy when programming, especially in curly brace heavy languages.

      Changed to US qwerty 30 years ago, never looking back.

      • f1shy 2 hours ago

        I always changed to ANSI layout, independent of the layout of the actual keys. Now I carry a HHKB with me, and connect through BT to whatever computer I want to work on. No matter what human language I write in (I do some) I prefer using accidents like tildes and umlauts with modifier keys.

  • InDubioProRubio 6 hours ago

    And there are modal editors, who switch keylaouts depending on the need of the minute.. debug/edit/search

  • animal531 5 hours ago

    Yeah when I was a 20 or so and just started working I taught myself Dvorak for a while, but realized how bad it was for coding in C. So I made my own C language one as well.

    Of course you still have to type text and at the time you couldn't easily switch between different layouts, so after a time I got bored of it and gave up.

Lemaxoxo 8 hours ago

Nice! I wrote about something similar for rectangular layouts: https://maxhalford.github.io/blog/dynamic-on-screen-keyboard...

  • willwade 7 hours ago

    thats wonderful. id like that to not change the order of the letters - but change the highlight order. Do a round 1 of frequency order first (just do first say 6 letters) then do a round 2 which is standard order..

    i probably am not making much sense. Look at where I'm coming from in the world of Assistive Tech - https://docs.acecentre.org.uk/products/echo (go to around 5 min mark in the vide)

    • flir 4 hours ago

      How about a backlit keyboard, and if the next letter is probably a vowel, only the vowels are lit?

      I'd be quite interested in trying that. Maybe as a learning aid. But if you get your typing speed up, I can see it being visually very noisy.

internet_points 6 hours ago

ah, I have been looking for this all my life, thank you! ;-)

(though really what I want is dabbrev/pabbrev to sort predictions by markov order at least 2 or even a tiny recurrent network)

mungoman2 8 hours ago

This is not a bad idea. It's not dissimilar from an autocomplete engine. If reset per word and using a static probability table it will work its way into muscle memory. In practice fingers will only need to leave the home row for some initial letters.

  • shae 7 hours ago

    What letter is a good start if you do a reset at every word boundary? Maybe whatever letter is most common?

    • lazide 5 hours ago

      E I guess?

amelius 5 hours ago

I'm still looking for a way to produce quality keycaps at home.

dsamarin 8 hours ago

Fun concept. I had a thought about having it optimize in a way where left and right hands alternate for increased speed

subversive-dev 8 hours ago

I switch between English and German a lot. I wonder what that does to the algorithm.

  • thih9 6 hours ago

    There is an old joke that seems approproate:

    https://old.reddit.com/r/Jokes/comments/2o4rkq/english_to_be...

    > (…) In the first year, "s" will replace the soft "c". Sertainly, this will make the sivil servants jump with joy. The hard "c" will be dropped in favour of "k". This should klear up konfusion, and keyboards kan have one less letter. (…)

mateus1 8 hours ago

Very interesting, I wonder if you could incorporate text prediction so that you can write a sentence in just one key (aside from space).

  • shae 7 hours ago

    Repeatedly pressing the home row keys almost always turned into word end sequences like erere, I assume from words like there/were/here. I'm not sure how to go further with single character frequencies.

raister 8 hours ago

Too bad this github has latest changes 5 years ago, I wonder what they could update with LLMs, etc.

  • zkry 7 hours ago

    My guess would be not much. LLMs are pretty useless concerning anything novel. Maybe an LLM could update the docstrings?

    • debugnik 6 hours ago

      I'm assuming they meant replacing the markov model with a modern language model, not having an LLM magically improve the repo.

      • whereismyacc 4 hours ago

        That sounds like it'd give you no hope at all of ever learning muscle memory for it.