The old IBM terminal keyboards, as well as keyboards for the XT and AT protocols all used large circular DIN connectors. They are about the same size, but differ on the pins or pinout. Some are 270 degree and some are 180 degree.
AT and XT both used 180 degree DIN, which I think might be the same as what some MIDI equiptment uses today.
Terminal used 270 degree DIN, so there's less choice of plugs and sockets.
You have two choices in converting it. One is to mount the teensy internally and remove the old cable entirely, using a USB instead. The other option is to keep the original cable and build a converter box for it. The first option is likely cheaper. I chose the second option for my model F, and you can see the result here
http://geekhack.org/index.php?topic=39833.msg789867#msg789867You can see poxeclipse's effort here
http://geekhack.org/index.php?topic=39833.msg787473#msg787473If you go this route, I recommend not making the USB cable removable, as it greatly simplifies case construction.
It is likely easier and cheaper to mount the teensy internally.
---
Some basic concepts:
The teensy is a microcontroller.
We are using it with code by forum member soarer (on GH and DT) that converts terminal code outputs (as well as XT and AT and PS/2 ) to USB.
Like many such projects, there are lots of options. What layout do you want? Do you want to use the teensy internally or externally? You shoulkd think about this before you get started
To make it, you (basically) wire up inputs from the keyboard, and use the mini USB output on the teensy. Then you install soarer's code by "flashing" the teensy.
Questions and concerns like: "what wires go where" and "how do I flash the teensy" are easily answered by readong soarer's guide and documentation
The latest version is 1.12 You need to download 1.10 files and the 1.12 update. You can probably just use 1.10 if you want (I'm using 1.01 and it's working for me)
http://deskthority.net/workshop-f7/xt-at-ps2-terminal-to-usb-converter-with-nkro-t2510.html---
Oh, and the only IBM model F's with AT connectors are the "model F AT" and possibly the 1398733 "space unsaver" (the latter might be terminal, I've never owned one to check, and I've seen pictures of ones with PS2 cables which doesn't make sense, considering it came out before PS/2 and the connector on the 3290 plasma terminal it came with is some sort of circular DIN connector. I suspect it's terminal (270 degree DIN), but I don't know for sure.)