I have no idea what computer architecture is. However, I imagine it to be creating different parts and putting them together to make a product. In computer science class, I think we learn how to utilize computer architecture.
How does the computer understand what I type?
It understands what I type because in its software it is programmed to recognize i.